/********************************************************************************
*
* File: main.c
* Testing the PCAT parser
* Programmer: Leonidas Fegaras, UTA
* Date: 2/3/00
*
********************************************************************************/

//#include "ast.h"
#include <stdio.h>
const int ERROR=-1;

#include "y.tab.c"

int lineno = 1;
bool fileEnd = false;

extern FILE* yyin;

//void yyparse();


int main ( int argc, char* arg[] )
{

    if (argc>1)
    {
        yyin = fopen(arg[1],"r");
    }

    while(!fileEnd)
    {
        yyparse();
        if(strlen(yytext)==0)
        {
            break;
        }
    }
    return 0;
};
